From 08a2b910e5c1ba7e941197394af54e3a66090e2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Mon, 2 Jan 2012 04:09:00 +0100 Subject: [PATCH] tests: Use g_list_free_full() convenience function --- tests/testiconview.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/testiconview.c b/tests/testiconview.c index 053b7636e8..b926497513 100644 --- a/tests/testiconview.c +++ b/tests/testiconview.c @@ -351,8 +351,7 @@ do_popup_menu (GtkWidget *icon_list, if (list) { path = (GtkTreePath*)list->data; - g_list_foreach (list->next, (GFunc) gtk_tree_path_free, NULL); - g_list_free (list); + g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free); } } -- 2.30.2